/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cms.sessionbean;

import dto.Confitemorder;
import dto.Participant;
import dto.Payment;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author TauPo
 */
@Remote
public interface PaymentMgmtRemote {
    
     public List<Participant> getAllConferencesParticipant();
     public List<Participant> getConferencesParticipant(String conferenceName);
     public Participant getConferencesParticipant(String conferenceName,String userName);
     public List<Participant> getConferencesParticipantByUserName(String userName);
    
     public List<Confitemorder> getAllItemOrders();
     public List<Confitemorder> getItemOrders(String conferenceName,String itemName);
     public List<Confitemorder> getItemOrdersByConferenceName(String conferenceName);
     public List<Confitemorder> getItemOrdersByUserName(String userName);
     public List<Confitemorder> getItemOrdersByConfAndUser(String conferenceName,String userName);
     public Confitemorder getItemorder(String conferenceName,String itemName,String userName);
     
     public boolean doConferencePayment(String userName,double payAmt,String conferenceName);
     public boolean doItemOrderPayment(String userName,double itemAmt,String conferenceName, String itemName);
     public boolean updatePayment(Payment payment);
     public boolean deletePayment(String userName,String payName,int payType);
     
     public boolean approveConferencePaymentOnly(String userName,String conferenceName,int payStatus,String approverName);
     public boolean approveItemPayment(String userName,String conferenceName,String itemName,int payStatus,String approverName);
     
     
     public List<Payment> getAllPayments();
     public List<Payment> getAllPayments(String userName);
     public Payment       getPayment(String userName,String payName,int payType);
     public List<Payment> getAllConferencePayments(String conferenceName);
     public List<Payment> getConferencePaymentsOnly(String conferenceName);
     public List<Payment> getAllItemPayments(String itemName);
     
     
   
    
}
